<?php namespace nimo\domains\master\models;

use nimo\common\models\BaseNodeModel;

class Domain extends BaseNodeModel {

    protected $table = 'nd_master_domain';

    //protected $guarded = array();

    public static $rules = array(
        'id' => 'required',
        'name' => 'required|max:120',
        'name2' => 'max:120',
        'code' => 'max:8',
        'node_parent' => 'integer',
        'node_left' => 'integer',
        'node_right' => 'integer',
        'node_depth' => 'integer',
        'node_flag' => 'integer',
    );

}
